<?php
define('CACHE_ACTION_ROOT', substr(dirname(__FILE__), 0, -10).'cache/data/');

$content_cache_dir = opendir(CACHE_ACTION_ROOT);
	
while(false !== ($file = readdir($content_cache_dir))){
				
	if($file == '.' || $file == '..' || $file == 'index.php'){
					
		continue;
	}
				
	unlink(CACHE_ACTION_ROOT.$file);
}

echo '数据缓存文件全部清除完毕!';
?>